<%--
  Created by IntelliJ IDEA.
  User: yanglee
  Date: 2021/6/9
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="itheima" uri="http://ChanghuXian.com/common/"%>
<%@ include file="/public/header/permissionCommon.jspf" %>


<html>
<head>
    <title>区域服务异常预警</title>
    <link href="${webPath}/css/Sign/bootstrap.min.css" rel="stylesheet">
    <%@include file="/resources/commons/basejs.jsp" %>
</head>

<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部和左侧导航-->
    <div id="header"></div>

    <!--右侧主体区域-->
    <div class="layui-body" >
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">区域服务异常预警</li>

            </ul>
        </div>
        <table id="QuyuAlarm" lay-filter="QuyuAlarm"></table>
    </div>

    <!--底部-->
    <div id="footer"></div>
    <%--<script src="${webPath}/js/permission/auth/permList.js"></script>--%>
    <script>
        $("#header").load("${webPath}/publicPages/permission/fragments/header.jsp");
        $("#footer").load("${webPath}/publicPages/permission/fragments/footer.jsp");
    </script>
</div>
</body>
<script>
    layui.use(['form',"table","laydate"], function() {
        var form = layui.form,
            table = layui.table,
            laydate = layui.laydate;
        table.render({
            elem: '#QuyuAlarm'//指定原始表格元素选择器（推荐id选择器）
            , url: '/statistics/getAllAlarmListShow'
            , parseData: function (res) { //res 即为原始返回的数据
                return {
                    "code": 0,
                    "msg": '',
                    "count": res.total,
                    "data": res.list
                };
            }
            , method: 'post'
            , id: 'QuyuAlarm'
            , height: 500 //容器高度
            , page: {
                layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
                , groups: 1 //只显示 1 个连续页码
                , first: false //不显示首页
                , last: false //不显示尾页
            }
            , request: {
                pageName: 'pn' //页码的参数名称，默认：page
                , limitName: 'limit' //每页数据量的参数名，默认：limit
            },
            cols: [[
                // {field: 'id', title: 'ID', align: 'center'},
                {field: 'serv_org', title: '机构', align: 'center'},
                {field: 'kkfw', title: '机构服务区域', align: 'center'},
                {field: 'ybid', title: '老人医保卡ID', align: 'center'},
                {field: 'name', title: '老人名字', align: 'center'},
                {field: 'fwjz', title: '老人所在街镇', align: 'center'},
                {field: 'insert_time', title: '异常时间', align: 'center',templet : "<div>{{layui.util.toDateString(d.insert_time, 'yyyy年MM月dd日 HH:mm:ss')}}</div>"},

            ]]
        });
    })



</script>
</html>
